package org.rency.ues.common.model;

/**
 * 认证信息
 *
 * @author: Created by user_rcy@163.com on 2016/8/10.
 * @version: V1.0.0
 * @since JDK 1.8
 */
public class UesCredentials {

    private String userName;

    private String password;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 两个认证对象是否相同
     * @param other
     * @return
     */
    public boolean isValid(UesCredentials other){
        if(this.getUserName().equals(other.getUserName()) && this.getPassword().equals(other.getPassword())){
            return true;
        }
        return false;
    }
}
